{include file="header.tpl" title="Bao tri ma phat"}
<form action="" method="post" name ="tongquat" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="2">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
   {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>
  <tr>
    <td width="15%">{$lbl_maphat}</td>
    <td colspan="3" style="color:#FF0000"><input name="PENTYPE" id="PENTYPE" type="text" style="background:{$colormaphat}" value="{$PENTYPE}" size="20" maxlength="5" {if $activefield eq 'enabled' } readonly="readOnly"{/if} />
     * 
      <input type="submit" name="find" value="    " id="replacement_find" {if $activefield eq 'enabled' } disabled="disabled"{/if} /></td>
  </tr>
  <tr>
    <td>{$lbl_machinhanh}</td>
    <td colspan="3"><span style="color:#FF0000">
      <input name="BRNCODE" id="BRNCODE" type="text" style="background:{$colormaCN}" value="{$BRNCODE}" size="20" maxlength="3" {if $activefield eq 'enabled' } readonly="readOnly"{/if} />
    * </span><span style="color:#FF0000">
    <input type="button" onclick="mywindow = window.open('chi_nhanh_id.php', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findchinhanh" id="replacement_binoculars" value="     " {if $activefield eq 'enabled' } disabled="disabled" {/if} />
    </span></td>
  </tr>
  <tr>
    <td>{$lbl_ten_laisuat}</td>
    <td colspan="3"><span style="color:#FF0000">
      <input name="PENNAME" type="text" style="background:{$colortenmaphat}" value="{$PENNAME}" size="50" maxlength="50" />
    *</span></td>
    </tr>
  <tr>
    <td>{$lbl_ngayhieuluc}</td>
    <td nowrap="nowrap"><input type="text" value="{$datevalue}" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" name="EFFDATE" size="20"  readonly="readOnly">    </td>
	<td width="15%">{$lbl_cachtinhphat}</td>
	<td><select name="ACRTYPE" size="1" style="width:150px;" >
	  
      {foreach from=$ACRTYPE key=k item=v}
	  	
	  <option value="{$k}" {if $k eq $activedorc} selected="selected" {/if} >{$v}</option>
	  
	  {/foreach}
    
	  </select>	</td>
  </tr>
  <tr>
    <td>{$lbl_sodutinhlai}</td>
    <td><select name="ACRBAL" size="1" style="width:150px;">
		{foreach from=$ACRBAL key=k item=v}
	  	
      <option value="{$k}" {if $k eq $activeACRBAL} selected="selected" {/if} >{$v}</option>
      
	  {/foreach}
    </select>    </td>
    <td>{$lbl_cosonam}</td>
    <td><select name="YBASE" size="1" style="width:150px;" >
      
      {foreach from=$YBASE key=k item=v}
	  	
      <option value="{$k}" {if $k eq $activedorc} selected="selected" {/if} >{$v}</option>
      
	  {/foreach}
    
    </select>    </td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_laisuatKKH}</td>
    <td nowrap="nowrap"><input name="DRATE" type="text" style="background:{$colorLSKKH}; text-align:right;" value="{$DRATE}" size="20" maxlength="10" onBlur="formatNumber2(this,this.value,4,4);checkDecimal(this,this.value);" onkeypress="return numberOnly(event);" />
      % n&#259;m <span style="color:#FF0000">*</span></td>
    <td nowrap="nowrap">{$lbl_malaisuatKKH}</td>
    <td nowrap="nowrap"><input name="DRATECD" id="DRATECD" type="text" style="background:{$colorDRATECD}" value="{$DRATECD}" size="20" maxlength="5" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=DRATECD', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat" id="replacement_binoculars" value="     "></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_sokyhantruoc}</td>
    <td><input name="TERMNO" id="TERMNO" type="text" value="{$TERMNO}" size="20" maxlength="10" readonly="readOnly" style="text-align:right;"  />
({$lbl_toida})</td>
    <td>{$lbl_DMAXTIME}</td>
    <td><input name="DMAXTIME" type="text" style="background:{$colorDMAXTIME}; text-align:right;" value="{$DMAXTIME}" size="20" maxlength="6" onblur="formatNumber2(this,this.value,1,4);" onkeypress="return numberOnly(event);"/></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_DMINAMT}</td>
    <td><input name="DMINAMT" type="text" style="background:{$colorDMINAMT}; text-align:right;" value="{$DMINAMT}" size="20" maxlength="20" onblur="formatNumber2(this,this.value,18,2);" onkeypress="return numberOnly(event);"/></td>
    <td>{$lbl_DMINDAY}</td>
    <td><input name="DMINDAY" type="text" style="background:{$colorDMINDAY}; text-align:right;" value="{$DMINDAY}" size="20" maxlength="3" onkeyup="this.value = this.value.replace('.','');"  onkeypress="return numberOnly(event);"/></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_DAYNOINT}</td>
    <td><input name="DAYNOINT" type="text" id="DAYNOINT" style="background:{$colorDAYNOINT}; text-align:right;" onkeypress="return numberOnly(event);" value="{$DAYNOINT}" size="20" maxlength="3" /></td>
    <td>{$lbl_Npihld}</td>
    <td><input name="NPIHLD" type="text" id="NPIHLD" style="background:{$colorNPIHLD}; text-align:right;" value="{$NPIHLD}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');"/></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_RATEATEFFDT}</td>
    <td><select name="RATEATEFFDT" id="RATEATEFFDT">
      <option value=""></option>
      
	{foreach from=$cbo_RATEATEFFDT key=k item=v}
      
      <option value="{$k}" {if $k eq $RATEATEFFDT} selected="selected" {/if} > {$k} - {$v} </option>
      
      
      {/foreach}
     
    
    </select></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
<tr>
<td colspan="4">
<div align="center">
<table border="0" cellspacing="1" cellpadding="5" style="width:60%;" id="tblSample">
  <thead>
  <tr>
    <th>{$lbl_stt}</th>
    <th>{$lbl_kyhan}</th>
    <th>{$lbl_makkyhan}</th>
    <th>{$lbl_laisuat}</th>
    <th>{$lbl_malaisuat}</th>
  </tr>
  </thead>
  <tbody></tbody>
  <tfoot>
  <tr>
  <td colspan="7">
  <input type="button" value="{$themrecord}" class="button_style" onClick="addRowToTable3(null,'','','','');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" name="addrecord" id="addrecord" />  </td>
  </tr>
  </tfoot>
</table>
{$tbldata}</div></td>
</tr>
<tr>
<td colspan="4">
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
<tr>

<td colspan="4" align="right" nowrap="nowrap">
    <input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="activeform(this.form,'PENTYPE-BRNCODE');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
    <input type="submit" name="capnhat" value="{$ten_cap_nhat}" {if $activefield eq 'disabled' }disabled="disabled" {/if} class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
  </tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap">
<input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
<input name="detail" type="submit" value="{$ten_chitiet}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>

<tr>
<td colspan="3">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap"> 
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
   {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
